</para>
<example id="put-pixel">
- <title>put_pixel() example</title>
+ <title>put_pixel(<!-- -->) example</title>
<para>
- The following code illustrates a simple put_pixel() function
- for RGB pixbufs with 8 bits per channel with an alpha channel.
- It is not included in the gdk-pixbuf library for performance
- reasons; rather than making several function calls for each
- pixel, your own code can take shortcuts.
+ The following code illustrates a simple put_pixel(<!-- -->)
+ function for RGB pixbufs with 8 bits per channel with an alpha
+ channel. It is not included in the gdk-pixbuf library for
+ performance reasons; rather than making several function calls
+ for each pixel, your own code can take shortcuts.
</para>
<programlisting>
width = gdk_pixbuf_get_width (pixbuf);
height = gdk_pixbuf_get_height (pixbuf);
- g_assert (x >= 0 && x < width);
- g_assert (y >= 0 && y < height);
+ g_assert (x >= 0 && x < width);
+ g_assert (y >= 0 && y < height);
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
pixels = gdk_pixbuf_get_pixels (pixbuf);
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2")
End:
-->
+
+